<?php
/*
 * *********************************************************
 * ## Module controllers must extend MD_Controller class ##
 * *********************************************************
 */
class Sample extends MD_Controller {
    
public function __construct()
{
    parent::__construct();
    
            /*
             * ********************************************
             * LOAD LANGUAGE FILES FOR THIS MODULE ONLY
             * notice that some language files have been
             * loaded within MY_Controller core class
             * and those language files are common for all
             * modules
             * ********************************************
             */    
    
            $this->lang->load('module_page',LANGUAGE);
            $this->lang->load('module_links',LANGUAGE);
}
    
public function index()
{
    /*
     * define data
     */          
    $data = array(
                    'title'       => lang('ext_home_title'),
                    'description' => lang('ext_home_desc')
                  );
    
    /*
     * parse templates
     */
    
    $this->load->view('header',$data); // shared header
    
    $this->load->view('module_header'); // module header    
    
    $this->load->view('sample_core'); // theme sample template
           
    $this->load->view('sample_module'); // module page template
    
    $this->load->view('module_footer'); // module footer
     
    $this->load->view('footer'); // shared footer
    
    
}
    
}


?>
